Proc Geocode is available in SAS 9.2 (Otherwise know as what I learned at SESUG09 & will immediately utilize Wednesday.)

1

While working on a SAS OLAP and ESRI project, I was asked about geocoding addresses. Fortunately, Jeff Phillips, one of the SAS presenters at SESUG09 gave a talk about PROC GEOCODE. In SAS 9.2, street addresses can be given x/y coordinates via the geocode procedure using the 5 or 9 digit zipcodes. This isn't exact (as it maps to the centriod of the zipcode), but its a quick way to group data by geographic region.

The procedure is very straightforward:

  proc geocode data=source out=maptable zip nocity attributevar(city);
    run;

Check out the paper by Shane Trahan and his RTI teammates given at SESUG09 this week that discusses using the Google API for a more exact level of mapping coordinates. It should be available soon on a website near you. (RV-007 Title: Integrating Geocode Data from the Google Map API and SAS/Graph®)

Reference:

  1. SAS Online Documentation http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/a003121441.htm
  2. SAS Graph Paper from SAS Presents http://support.sas.com/resources/papers/sgf09/230-2009.pdf
Share

About Author

Angela Hall

Senior Technical Architect

Angela offers tips on using the SAS Business Intelligence solutions. She manages a team of SAS Fraud Framework implementers within the SAS Solutions On-Demand organization. Angela also has co-written two books, 'Building BI using SAS, Content Development Examples' & 'The 50 Keys to Learning SAS Stored Processes'.

1 Comment

  1. PROC GEOCODE has supported street-level geocoding for the U.S. since the SAS 9.2M3 release. International city-level geocoding was added in SAS 9.3M2.

Back to Top